package com.ohos.connent.accountcloud.biz.modular.dp.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 企业认证-分页参数
 * @Author: ChenJiaHao
 * @Date: 2024/6/12 11:48
 * @Description:
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
public class DpEnterprisePageParam {

    /** 当前页 */
    @ApiModelProperty(value = "当前页码")
    private Integer current;

    /** 每页条数 */
    @ApiModelProperty(value = "每页条数")
    private Integer size;

    /** 排序字段 */
    @ApiModelProperty(value = "排序字段，字段驼峰名称，如：userName")
    private String sortField;

    /** 排序方式 */
    @ApiModelProperty(value = "排序方式，升序：ASCEND；降序：DESCEND")
    private String sortOrder;

    @ApiModelProperty(value = "搜索条件",position = 1)
    private String searchKey;

    @ApiModelProperty(value = "类型", required = true, position = 2)
    @NotNull(message = "类型不能为空")
    private Integer type;
}
